﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using DevComponents.DotNetBar;
using HY_Model;
namespace HYWJ
{
    public partial class Logon : Office2007Form
    {
        public Logon()
        {
            InitializeComponent();
        }        
        

        //窗体打开
        private void Logon_Load(object sender, EventArgs e)
        {
            this.userName.Focus();
            WindowShow ws = new WindowShow(this.Handle, 100, 1, this);
        }

        //窗体关闭
        private void Logon_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }
        /// <summary>
        /// 登陆
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DL_Click_1(object sender, EventArgs e)
        {
            
            Form1 fm = new Form1();
            fm.Show();
            this.Hide();
        }
        /// <summary>
        /// 退出系统
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EXIT_Click(object sender, EventArgs e)
        {
            this.Close();
            Application.Exit();
        }

        
        //鼠标进入用户名
        private void userName_Enter(object sender, EventArgs e)
        {
            this.userName.BackColor = Color.Blue;
            this.userName.ForeColor = Color.White; 
        }

        //鼠标离开用户名
        private void userName_Leave(object sender, EventArgs e)
        {
            this.userName.BackColor = Color.White;
            this.userName.ForeColor = Color.Black;
        }

        //鼠标进入密码框
        private void passWord_Enter(object sender, EventArgs e)
        {
            this.passWord.BackColor = Color.Blue;
            this.passWord.ForeColor = Color.White; 
        }

        //鼠标离开密码框
        private void passWord_Leave(object sender, EventArgs e)
        {
            this.passWord.BackColor = Color.White;
            this.passWord.ForeColor = Color.Black;
        }

    }
}
